SQL ManualFunctionsString FunctionsrtrimOn this pagertrimrtrimDescriptionSyntax:VARCHAR rtrim(VARCHAR str)This function removes the continuous whitespace that appears from the right of the string.Examplemysql> SELECT rtrim('ab d ') str;+------+| str |+------+| ab d |+------+KeywordsRTRIM